package com.bw.day11.entity;

import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Claim {
	private String id;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date date;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date enddate;
	private String name;
	private String dept;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date feeDate;
	private Double fee;
	private Double endfee;
	private String appedix;
	private List<Detail> details;
	
	public Claim(String id, Date date, Date enddate, String name, String dept, Date feeDate, Double fee, Double endfee,
			String appedix, List<Detail> details) {
		super();
		this.id = id;
		this.date = date;
		this.enddate = enddate;
		this.name = name;
		this.dept = dept;
		this.feeDate = feeDate;
		this.fee = fee;
		this.endfee = endfee;
		this.appedix = appedix;
		this.details = details;
	}
	public Date getEnddate() {
		return enddate;
	}
	public void setEnddate(Date enddate) {
		this.enddate = enddate;
	}
	public Double getEndfee() {
		return endfee;
	}
	public void setEndfee(Double endfee) {
		this.endfee = endfee;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDept() {
		return dept;
	}
	public void setDept(String dept) {
		this.dept = dept;
	}
	public Date getFeeDate() {
		return feeDate;
	}
	public void setFeeDate(Date feeDate) {
		this.feeDate = feeDate;
	}
	public Double getFee() {
		return fee;
	}
	public void setFee(Double fee) {
		this.fee = fee;
	}
	public String getAppedix() {
		return appedix;
	}
	public void setAppedix(String appedix) {
		this.appedix = appedix;
	}

	public List<Detail> getDetails() {
		return details;
	}
	public void setDetails(List<Detail> details) {
		this.details = details;
	}
	
	public Claim(String id, Date date, String name, String dept, Date feeDate, Double fee, String appedix,
			List<Detail> details) {
		super();
		this.id = id;
		this.date = date;
		this.name = name;
		this.dept = dept;
		this.feeDate = feeDate;
		this.fee = fee;
		this.appedix = appedix;
		this.details = details;
	}
	
	@Override
	public String toString() {
		return "Claim [id=" + id + ", date=" + date + ", enddate=" + enddate + ", name=" + name + ", dept=" + dept
				+ ", feeDate=" + feeDate + ", fee=" + fee + ", endfee=" + endfee + ", appedix=" + appedix + ", details="
				+ details + "]";
	}
	public Claim() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
}
